import {customeStruct} from '../utils';
const itf = customeStruct.interface;
export const List = itf({
    payload: itf({
        content: [itf({
            id: 'string',
            options: ['string']
        })],
        totalElements: 'number'
    })
});


export const Detail = itf({
    payload: itf(
        {
            id: 'string',
            partSaleOrderId: 'string',
            rowVersion: 'string? | null',
            options: [
                'string'
            ],
           
        },
    )
});

export const Brand = itf({
    payload: itf({
        content: [
            itf({
                id: 'string',
                code: 'string',
                name: 'string',
            })
        ],
    })
});

export const OrderDetail = itf({
    payload: itf(
        {
            id: 'string',
            code: 'string',
            dealerCode: 'string',
            dealerName: 'string',
            details: [
                itf({
                    partId: 'string',
                    partCode: 'string',
                    partName: 'string',
                    oldPartId: 'string? | null',
                    oldPartCode: 'string? | null',
                    oldPartName: 'string? | null',
                })
            ],

        },
    )
});

export const History = itf({
    payload: itf({
        content: [itf({
            id: 'string',
        })],
        totalElements: 'number'
    })
});
